package com.crealth.mapper;


import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.crealth.model.ClienteleInfoModel;

public abstract interface MyselfClienteleInfoMapper {
	
	public abstract Integer insertClienteleInfo(
    		@Param("strMobi")String strMobi,
    		@Param("strNoti")String strNoti,
    		@Param("strName")String strName,
    		@Param("createrID")Integer createrID);
    
    public abstract Integer insertClienteleObj(
    		ClienteleInfoModel cliModel);
    
    public abstract List<ClienteleInfoModel> selectClienteleInfoByCreateUser(
    		@Param("userID")Integer userID);
    
    public abstract List<ClienteleInfoModel> selectClienteleInfoByMobi(
    		@Param("strMobi")String strMobi,
    		@Param("userID")int userID);    
    
    public abstract Integer updateCallRecordByMobi(
    		@Param("setUserID")int setUserID,
    		@Param("callMobi")String callMobi,
    		@Param("cdrID")long cdrID);
    
    public abstract Integer selectUserClienteleSumNum(
    		@Param("userID")int userID);
    public abstract Integer selectUserClienteleNotCallNum(
    		@Param("userID")int userID);
    
    public abstract void deleteClienteleByCreateID(
    		@Param("userID")int userID);
    
}
